﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Markup;

namespace ConfigureSystem
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        public static T Clone<T>(T Element) where T : UIElement
        {
            string Xaml = XamlWriter.Save(Element);

            return XamlReader.Parse(Xaml) as T;
        }
    }
}